<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/html1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html xmlns="http://www.w3.org/1999/xhtml">
	<f:view>
		<head>
			<title><h:outputText value="#{msgs['gci.title']}" /></title>
			<script type="text/javascript" src="${pageContext.request.contextPath}/includes/js/jquery-mask.js"></script>
			<a4j:loadStyle src="/includes/css/sccss.css"></a4j:loadStyle>
			<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		</head>
		<body>
			<jsp:include page="../topo.jsp" />
			<h:form >
				<a4j:keepAlive beanName="loginController" />	
				<fieldset>
					<legend> <h:outputText value="#{msgs['senha.trocarSenha']}" /></legend>						
					<p class="formitem_line">
						<h:outputLabel value="#{msgs['func.funcionario']}:" />
						<h:outputText value="#{loginController.funcionario.nome}" />
					</p>
					<p class="formitem_line">
						<h:outputLabel value="#{msgs['senha.senhaAntiga']}:" />
						<h:inputSecret size="25" id="senhaAntiga" value="#{loginController.senhaAntiga}" maxlength="15" redisplay="true" required="true" requiredMessage="#{msgs['error.campoobrigatorio']}"/>
						<h:message styleClass="error" for="senhaAntiga" />
					</p>
					
					<p class="formitem_line">
						<h:outputLabel value="#{msgs['senha.novaSenha']}:" />
						<h:inputSecret size="25" id="novaSenha" value="#{loginController.novaSenha}" maxlength="15" redisplay="true" required="true" requiredMessage="#{msgs['error.campoobrigatorio']}"/>
						<h:message styleClass="error" for="novaSenha" />
					</p>
					
					<p class="formitem_line">
						<h:outputLabel value="#{msgs['senha.confNovaSenha']}:" />
						<h:inputSecret size="25" id="confNovaSenha" value="#{loginController.confNovaSenha}" redisplay="true" maxlength="15" required="true" requiredMessage="#{msgs['error.campoobrigatorio']}"/>
						<h:message styleClass="error" for="confNovaSenha" />
					</p>
			
					<p class="final">
						<h:commandButton action="#{loginController.trocarSenha}" value="#{msgs['common.confirmar']}" />
					</p>	
				</fieldset>
							
			</h:form>					
		</body>
	</f:view>
</html>